#include<stdio.h>
int main(){
    int num = 0;
    scanf("%d",&num);

    int num_100 = 0;
    int num_10 = 0;
    int num_1 = 0;

    num_100 = num/100;
    num_10 = (num%100)/10;
    num_1 = (num%100)%10;

    if(num_1 > 0){
        printf("%d%d%d", num_1, num_10,num_100 );
    }else{
        if(num_10 > 0){

        printf("%d%d", num_10,num_100 );
        }else{
        printf("%d", num_100 );

        }

    }


    return 0;
}